package com.government.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 留言板对象 t_guestbook
 * 
 * @author system
 * @date 2023-11-15
 */
@TableName("t_guestbook")
@Data
public class Guestbook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO )
    private Long id;

    /** 用户id */
    private Long userId;

    /** 发送人id */
    private Long sendId;

    /** 内容 */
    private String content;

    /** 类型 1-用户发送  2-管理员发送*/
    private String type;

    @TableField(exist = false)
    private String userName;
}
